using System.ComponentModel;

namespace SumerCoreDevOps.Application.Dtos.Responses.Workflows
{
    /// <summary>
    /// 验证结果
    /// </summary>
    public class ValidationResult
    {
        /// <summary>
        /// 是否验证通过
        /// </summary>
        /// <example>true</example>
        [Description("是否验证通过")]
        public bool IsValid { get; set; }

        /// <summary>
        /// 错误信息列表
        /// </summary>
        [Description("错误信息列表")]
        public List<string> Errors { get; set; } = [];
    }
}
